From 78a29434789c7e7af7b3cf10a548d6247a69d3a9 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Thu, 7 Dec 2017 17:30:49 -0500 Subject: [PATCH] Fix ordering of default replacement-alist When which-key-allow-multiple-replacements is nil, this order is required to get the intended behavior with left and right. Ref #181 --- which-key.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/which-key.el b/which-key.el index 79f7affd852..e0c03561cfc 100644 --- a/which-key.el +++ b/which-key.el @@ -152,10 +152,10 @@ remapped given the currently active keymaps." `(((nil . "Prefix Command") . (nil . "prefix")) ((nil . "\\`\\?\\?\\'") . (nil . "lambda")) ((nil . "which-key-show-next-page-no-cycle") . (nil . "wk next pg")) - (("<\\([[:alnum:]-]+\\)>") . ("\\1")) ,@(unless which-key-dont-use-unicode - '((("left") . ("←")) - (("right") . ("→")))))) + '((("") . ("←")) + (("") . ("→")))) + (("<\\([[:alnum:]-]+\\)>") . ("\\1")))) "Association list to determine how to manipulate descriptions of key bindings in the which-key popup. Each element of the list is a nested cons cell with the format -- 2.30.2